package com.learn.image.service;


import com.learn.image.utils.R;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description:    java类作用描述
 * @author:         Administrator
 * @createTime:     2023/11/28 0028 17:22
 * @updateUser:     Administrator
 * @updateTime:     2023/11/28 0028 17:22
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public interface ImageFileService {

    R uploadImageFile(String text, MultipartFile imageFile);

    /**
     * 制作防伪水印
     *
     * @param waterContext 水印内容
     * @param uploadPath   服务器上上传文件的路径
     * @param dateTime     时间戳
     * @return
     */
    R addWatermark(String waterContext, MultipartFile imageFile,String uploadPath,String dateTime);

    /**
     * 上传图片
     * @param file 文件
     * @param uploadPath 服务器上传文件路径
     * @param physicalUploadPath 服务器上传文件物理路径
     * @return 上传文件的URL相对地址
     */
    String uploadImage(MultipartFile file, String uploadPath, String physicalUploadPath);
}
